package com.learning.spring.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(BinaryTeaProperties.class) // 这个注解的作用是创建一个bean，bean类名来自于()中的值
@ConditionalOnProperty(name = "binarytea.ready", havingValue = "true") // bean中属性值 必须是binary.ready = true
public class ShopConfiguration {
}
